// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "AppNetwork",
    platforms: [.iOS(.v13)],
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "AppNetwork",
            targets: ["AppNetwork"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/shiqingluo/AppDecoder.git", from: "1.0.1"),
        .package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.9.1"),
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "AppNetwork",
            dependencies: ["AppDecoder", "Alamofire"]
        ),
        .testTarget(
            name: "AppNetworkTests",
            dependencies: ["AppNetwork", "AppDecoder", "Alamofire"]
        ),
    ],
    swiftLanguageModes: [.v5]
)
